package com.whpost.service.dao.t;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whpost.service.entity.t.TRole;
import org.apache.ibatis.annotations.Select;

public interface TRoleDao extends BaseMapper<TRole> {

    // 获取menuid
    @Select("select menu_id from t_role where id=#{id}")
    String getMenuByRoleId(Long id);

    // 删除角色，做标志修改。
    @Select("update t_role set state='0' where id=#{id}")
    String delRole(String id);

}